import java.util.Random;

/**
 * Created by dllo on 18/4/2.
 */
public class Question01 {
    // 随机生成 20 个数 (范围:0~10) ,放到数组中,输出 其中的偶数
    public static void main(String[] args) {
        Random random = new Random();
        int[] arr = new int[20];
        for (int i = 0; i < 20; i++) {
            arr[i] = random.nextInt(9) + 1;
            System.out.println(arr[i]);
        }
        for (int j = 0; j < arr.length; j++) {

            if (arr[j] % 2 == 0) {
                System.out.print(arr[j]);
            }
        }
    }
}
